package com.tencent.miniproject.ui;

import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.widget.FrameLayout;

import com.tencent.miniproject.R;
import com.tencent.miniproject.base.BaseActivity;
import com.tencent.miniproject.constants.Constant;
import com.tencent.miniproject.fragment.NeighborFriendsFragment;
import com.tencent.miniproject.view.EditTextWithDel;

import butterknife.BindView;

/**
 * 用于显示前端从地图返回的字段，跳转之后的页面，用于查看分类的动态信息
 */
public class ShowClassifyPostActivity extends BaseActivity {
    @BindView(R.id.etw_search)
    EditTextWithDel mEtwSearch;
    @BindView(R.id.fl_content)
    FrameLayout mFlContent;

    private String mTag;
    private NeighborFriendsFragment mFragment;
    private FragmentManager mFragmentManager;

    @Override
    protected int setLayoutResID() {
        return R.layout.activity_tag_list;
    }

    @Override
    protected void initData() {
        mTag = getIntent().getStringExtra("store_classify");
    }

    @Override
    protected void initView() {
        mFragmentManager = getSupportFragmentManager();
        mFragment = NeighborFriendsFragment.newInstance(Constant.FRAGMENT_TAG,mTag,null,null);
        FragmentTransaction fragmentTransaction = mFragmentManager.beginTransaction();
        fragmentTransaction.add(R.id.fl_content,mFragment);
        fragmentTransaction.commit();
    }

    @Override
    protected void initListener() {

    }


}
